import { createSSRApp } from 'vue'
import uviewPlus from 'uview-plus'
import { setupPinia } from '@/store'
import App from './App.vue'
import type { Plugin } from 'vue'

uni.$u.setConfig({
	config: {
		unit: 'rpx',
	},
	props: {
		radio: {
			size: 14,
		},
	},
})

export function createApp() {
	const app = createSSRApp(App)
	setupPinia(app)
	app.use(uviewPlus as Plugin)
	return {
		app,
	}
}
